<template>
  <div class="topNav" :style="{ background: bgc }">
    <div class="iconfont iconjiantou2" @click="$router.back()"></div>
    <div class="title">{{ title }}</div>
  </div>
</template>

<script>
export default {
  props: ["title", "bgc"],
};
</script>

<style lang="less" scoped>
.topNav {
  position: fixed;
  display: flex;
  width: 100%;
  height: 46 / 360 * 100vw;
  padding: 0 / 360 * 100vw 12 / 360 * 100vw;
  color: #fff;
  align-items: center;
  text-align: center;
  z-index: 999999;
  .iconjiantou2 {
    font-size: 16 / 360 * 100vw;
  }
  .title {
    flex: 1;
    font-weight: bold;
    font-size: 16 / 360 * 100vw;
    padding-right: 34 / 360 * 100vw;
  }
}
</style>
